<template>
	<view class="container">
		<view class="waite-number">
			<view class="num-wrap">
				<view class="num-item" v-for="(item,index) in waiteNumList" :key="index">
					<text class="num">{{item.title}}</text>
					<text class="num">{{item.value}}</text>
				</view>
			</view>
		</view>
		<view class="button-group">
			<view class="btn-box" @click="operate(item.title)" v-for="(item,index) in btnGroupList" :key="index"
				:class="item.title==title?'activeBtn':''">
				<uni-icons custom-prefix="iconfont" :type="item.icon" size="18"
					:color="item.title==title?'#FFFFFF':'#3251EC'"></uni-icons>
				<text class="btn">{{item.title}}</text>
			</view>
		</view>
		<scroll-view :scroll-top="scrollValue" @scroll="scroll" scroll-y="true" :enable-flex="true">
			<view class="scroll">
				<view v-if="!title" class="card-box">
					<view v-for="(item,index) in stockCountList" :key="index" class="card">
						<view class="top">
							<view class="name">{{item.materialName}}</view>
							<view class="count">
								数量:<text class="num">{{item.count}}</text>
							</view>
						</view>
                        <view class="bottom">
                            <fileUpload v-model:ossIds="item.imageVideo" :key="underLeaseKey" :disabled="true" :max-count="item.imageVideoUrl.split(',').length"/>
                        </view>
					</view>	
				</view>
				<view class="product-box" v-if="title=='领用'">
					<view v-for="(item,index) in formData1.receiveProductList" :key="index" class="item-box">
						<view class="item-title">
							物料{{index+1}}
							<button type="warn" size="mini" @click="deleteProduct(index,1)" v-if="index>0"
								class="btn">删除</button>
						</view>
						<view class="item-row">
							<text class="label">物料名称</text>
							<view class="input" @click="chooseProduct(index,1)">
								{{item.materialId?item.materialName:'选择物料 >'}}
							</view>
						</view>
						<view class="item-row last-row">
							<text class="label">使用数量</text>
							<view class="input"><uni-number-box v-model="item.count" :min="0" /></view>
						</view>
					</view>
					<view class="addBtn" @click="addProduct(1)">
						<uni-icons type="plus-filled" size="20" color="#3250EC"></uni-icons>添加产品
					</view>
					<view class="btn-group">
						<button class="btn" type="primary" plain="true" size="mini" @click="cancel">取消</button>
						<button class="btn" type="primary" @click="submitForm1" size="mini">领用</button>
					</view>
				</view>
				<view class="product-box" v-if="title=='入库'">
					<view v-for="(item,index) in formData2.receiveProductList" :key="index" class="item-box">
						<view class="item-title">
							物料{{index+1}}
							<button type="warn" size="mini" @click="deleteProduct(index,2)" v-if="index>0"
								class="btn">删除</button>
						</view>
						<view class="item-row">
							<text class="label">物料名称</text>
							<view class="input" @click="chooseProduct(index,2)">
								{{item.materialId?item.materialName:'选择物料 >'}}
							</view>
						</view>
						<view class="item-row last-row">
							<text class="label">使用数量</text>
							<view class="input"><uni-number-box v-model="item.count" :min="0" /></view>
						</view>
						<view class="item-row image-row">
							<text class="label">照片</text>
							<fileUpload v-model:ossIds="item.receiveImage" :key="receiveKey"/>
						</view>
					</view>
					<view @click="addProduct(2)" class="addBtn"><uni-icons type="plus-filled" color="#3251EC"
							size="30"></uni-icons> 添加产品</view>
					<view class="btn-group">
						<button class="btn" type="primary" plain="true" size="mini" @click="cancel">取消</button>
						<button class="btn" type="primary" @click="submitForm2" size="mini">领用</button>
					</view>
				</view>
				<view class="product-box" v-if="title=='入库'">
					<uni-collapse @change="open(1)" >
						<uni-collapse-item titleBorder="none" :open="collapse" :border="collapse" >
							<template v-slot:title>
								<uni-section title="待入库产品" type="line">
									<template v-slot:right>{{collapse?'展开':'收起'}}</template>
								</uni-section>
							</template>
							<view class="collapse">
								<view class="collapse-box" v-for="(item,index) in storageList" :key="index">
									<view class="name">{{item.materialName}}</view>
									<view class="cnt">
										<fileUpload v-model:ossIds="item.materialImage" :disabled="true" :maxCount="1" />
										<view class="count">待入库 <text class="num">{{item.count}}</text></view>
									</view>
								
								</view>
							</view>
							
						</uni-collapse-item>
					</uni-collapse>
				</view>
				<view class="product-box" v-if="title=='转借'">
					
					<uni-forms-item label="接收人" name="underLeaseToUserId" v-if="show" class="form-item">
						<uni-data-select v-model="formData3.underLeaseToUserId" :localdata="appUserList"
							:clear="false"></uni-data-select>
					</uni-forms-item>
					<view v-for="(item,index) in formData3.underLeaseProductList" :key="index"
						class="item-box">
						
						<view class="item-title">
							物料{{index+1}}
							<button type="warn" size="mini" @click="deleteProduct(index,3)" v-if="index>0"
								class="btn">删除</button>
						</view>
						<view class="item-row">
							<text class="label">物料名称</text>
							<view class="input" @click="chooseProduct(index,3)">
								{{item.materialId?item.materialName:'选择物料 >'}}
							</view>
						</view>
						<view class="item-row last-row">
							<text class="label">使用数量</text>
							<view class="input"><uni-number-box v-model="item.count" :min="0" /></view>
						</view>
						<view class="item-row image-row">
							<text class="label">照片</text>
							<fileUpload v-model:ossIds="item.underLeaseImage" :key="underLeaseKey"/>
						</view>
					</view>
					<view @click="addProduct(3)" class="addBtn"><uni-icons
							type="plus-filled" color="#3251EC" size="30"></uni-icons> 添加产品</view>
					<view class="btn-group">
						<button class="btn" type="primary" plain="true" size="mini" @click="cancel">取消</button>
						<button class="btn" type="primary" @click="submitForm3" size="mini">提交</button>
					</view>
				</view>
				<view class="product-box" v-if="title=='转借'">
					<uni-collapse @change="open(1)">
						<uni-collapse-item titleBorder="none" :open="collapse" :border="false">
							<template v-slot:title>
								<uni-section title="待借出产品 (待他人接受)" type="line">
									<template v-slot:right>{{collapse?'展开':'收起'}}</template>
								</uni-section>
							</template>
							<view class="collapse">
								<view class="collapse-box" v-for="(item,index) in stockRecordList" :key="index" >
									<view class="name">{{item.materialName}}</view>
									<view class="cnt">
										<fileUpload v-model:ossIds="item.materialImage" :disabled="true" :maxCount="1" />
										<view class="count">待转借 <text class="num">{{item.count}}</text></view>
									</view>
								</view>
							
							</view>
						</uni-collapse-item>
					</uni-collapse>
				</view>
				<view class="product-box" v-if="title=='退回'">
					<view v-for="(item,index) in formData4.backProductList" :key="index" class="item-box">
						<view class="item-title">
							物料{{index+1}}
							<button type="warn" size="mini" @click="deleteProduct(index,4)" v-if="index>0"
								class="btn">删除</button>
						</view>
						<view class="item-row">
							<text class="label">物料名称</text>
							<view class="input" @click="chooseProduct(index,4,'库存')">
								{{item.materialId?item.materialName:'选择物料 >'}}
							</view>
						</view>
						<view class="item-row last-row">
							<text class="label">使用数量</text>
							<view class="input"><uni-number-box v-model="item.count" :min="0" /></view>
						</view>
						<view class="item-row image-row">
							<text class="label">照片</text>
							<fileUpload v-model:ossIds="item.backImage" :key="backKey" />
						</view>
					</view>
					<view @click="addProduct(4)" class="addBtn"><uni-icons
							type="plus-filled" color="#3251EC" size="30"></uni-icons> 添加产品</view>
					<view class="btn-group">
						<button class="btn" type="primary" plain="true" size="mini" @click="cancel">取消</button>
						<button class="btn" type="primary" @click="submitForm4" size="mini">提交</button>
					</view>
				</view>
				<view class="product-box" v-if="title=='报损'">
					<view v-for="(item,index) in formData5.damageProductList" :key="index" class="item-box">
						<view class="item-title">
							物料{{index+1}}
							<button type="warn" size="mini" @click="deleteProduct(index,5)" v-if="index>0"
								class="btn">删除</button>
						</view>
						<view class="item-row">
							<text class="label">物料名称</text>
							<view class="input" @click="chooseProduct(index,5,'库存')">
								{{item.materialId?item.materialName:'选择物料 >'}}
							</view>
						</view>
						<view class="item-row last-row">
							<text class="label">使用数量</text>
							<view class="input"><uni-number-box v-model="item.count" :min="0" /></view>
						</view>
						<view class="item-row image-row">
							<text class="label">照片</text>
							<fileUpload v-model:ossIds="item.damageImage" :key="damageKey" />
						</view>
						<view class="item-row remark-row">
							<text class="label">描述</text>
							<uni-easyinput type="textarea" v-model="item.remark" class="textarea"/>
						</view>
					</view>
					<view @click="addProduct(5)" class="addBtn"><uni-icons
							type="plus-filled" color="#3251EC" size="30"></uni-icons> 添加产品</view>
					<view class="btn-group">
						<button class="btn" type="primary" plain="true" size="mini" @click="cancel">取消</button>
						<button class="btn" type="primary" @click="submitForm5" size="mini">提交</button>
					</view>
				</view>


			</view>

		</scroll-view>
		<back-to-top :goTop="goTop"></back-to-top>
	</view>
</template>

<script>
	import * as API from '@/common/api';
	import {
		addBack,
		addDamage,
		listAllStockRecord
	} from "../../common/api";
	export default {
		name: "pages-materialPackage-products",
		props: {
			type: String
		},
		data() {
			return {
				firstIint:true,
				receiveKey:100,
				underLeaseKey:100,
				backKey:100,
				damageKey:100,
				title: '',
				index: 0,
				typeStr: '',
				formIndex: 0,
				scrollValue: 0,
				oldScrollValue: 0,
				
				show: true,
				collapse: false,
				waiteNumList: [{
						title: '待入库',
						value: 10
					},
					{
						title: '待借出',
						value: 15
					},
					{
						title: '待退回',
						value: 20
					},
					{
						title: '待报损',
						value: 8
					},
				],
				btnGroupList: [{
						icon: 'icon-lingyong',
						title: '领用'
					},
					{
						icon: 'icon-ruku',
						title: '入库'
					},
					{
						icon: 'icon-zhuanjie',
						title: '转借'
					},
					{
						icon: 'icon-tuihui',
						title: '退回'
					},
					{
						icon: 'icon-baosun',
						title: '报损'
					}
				],
				dataList: [],
				materialList: [],
				appUserList: [],
				formData1: {
					receiveProductList: [{}],
				},
				formData2: {
					receiveProductList: [{}],
				},
				formData3: {
					underLeaseProductList: [{}],
				},
				formData4: {
					backProductList: [{}],
				},
				formData5: {
					damageProductList: [{}],
				},
				storageList: [],
				stockRecordList: [],
				stockCountList: [],

			};
		},
		methods: {
			async operate(e) {
				if(this.title==e)
				{
					this.title='';
					await this.getStockCountList();
				}
				else this.title = e
			},
			goBack() {
				uni.navigateBack()
			},
			scroll: function(e) {
				this.oldScrollValue = e.detail.scrollTop
			},
			goTop: function(e) {
				this.scrollValue = this.oldScrollValue
				this.$nextTick(function() {
					this.scrollValue = 0
				});
			},
			submitForm() {
				uni.navigateBack()
			},


			async submitForm1() {
				const res = await API.addReceive(this.formData1);
				if (res.code == 200) {
					uni.$u.toast('提交成功')
					this.formData1 = {
						receiveProductList: [{}]
					}
				}
			},
			async submitForm2() {
				for (const item of this.formData2.receiveProductList) {
					const res = await API.updateReceiveProduct(item);
					if (res.code == 200) {
                        uni.$u.toast('提交成功');
						this.formData2 = {
							receiveProductList: [{}]
						}
						this.receiveKey++;
						await this.getStorageList();
						
					}
				
				}
			},
			async submitForm3() {
				const res = await API.addUnderLease(this.formData3);
				if (res.code == 200) {
					uni.$u.toast('提交成功')
					this.formData3 = {
						underLeaseProductList: [{}],
					}
					this.underLeaseKey++;
					await this.getStockRecordList();
				}
			},
			async submitForm4() {
				const res = await API.addBack(this.formData4);
				if (res.code == 200) {
					uni.$u.toast('提交成功')
					this.formData4 = {
						backProductList: [{}]
					}
					this.backKey++;
				}
			},
			async submitForm5() {
				const res = await API.addDamage(this.formData5);
				if (res.code == 200) {
					uni.$u.toast('提交成功')
					this.formData5 = {
						damageProductList: [{}]
					}
					this.damageKey++;
				}
			},

			async getStorageList() {
				const res = await API.listAllStorage({
					params: {
						materialCheck: '1',
						materialType: this.type,
						receiveState: '0'
					}
				});
				this.storageList = res.rows;

			},
			async getStockRecordList() {
				const res = await API.listAllStockRecord({
					params: {
						materialCheck: '0',
						materialType: this.type,

					}
				});
				this.stockRecordList = res.rows;

			},
			async getStockCountSum() {
				const res = await API.getStockCountSum({
					params: {
						type: this.type
					}
				})
				this.waiteNumList[0].value = res.data.storageCount;
				this.waiteNumList[1].value = res.data.stockRecordCount;
				this.waiteNumList[2].value = res.data.returnedCount;
				this.waiteNumList[3].value = res.data.breakageCount;

			},
			cancel() {
				this.title = '';
				this.formData1 = {
					receiveProductList: [{}]
				};
				this.formData2 = {
					receiveProductList: [{}]
				};
				this.formData3 = {
					underLeaseProductList: [{}]
				};
				this.formData4 = {
					backProductList: [{}]
				};
				this.formData5 = {
					damageProductList: [{}]
				}
			},
			addProduct(i) {
				if (i == 1) {
					this.formData1.receiveProductList.push({})
				} else if (i == 2) {
					this.formData2.receiveProductList.push({})
				} else if (i == 3) {
					this.formData3.underLeaseProductList.push({})
				} else if (i == 4) {
					this.formData4.backProductList.push({});
				} else this.formData5.damageProductList.push({})

			},
			deleteProduct(e, i) {
				if (i == 1) {
					this.formData1.receiveProductList.splice(e, 1)
				}

			},
			chooseProduct(index, formIndex, typeStr) {
				this.index = index;
				this.formIndex = formIndex;
				if (formIndex == 1) {
					uni.navigateTo({
						url: '/pages/myOrder/choose?title=领用' + '&materialType=' + this.type + '&chooseType=0'
					})
				} else if (formIndex == 2) {
					uni.navigateTo({
						url: '/pages/myOrder/choose?title=入库' + '&materialType=' + this.type + '&chooseType=1'
					})
				}
				else if (formIndex == 3) {
					uni.navigateTo({
						url: '/pages/myOrder/choose?title=转借' + '&materialType=' + this.type + '&chooseType=2'
					})
				}
				else if (formIndex == 4) {
					uni.navigateTo({
						url: '/pages/myOrder/choose?title=退回' + '&materialType=' + this.type + '&chooseType=2'
					})
				}
				else if (formIndex == 5) {
					uni.navigateTo({
						url: '/pages/myOrder/choose?title=报损' + '&materialType=' + this.type + '&chooseType=2'
					})
				}
				


			},
			getProduct(e) {
				if (this.formIndex == 1) {
					this.formData1.receiveProductList[this.index] = {
						materialId: e.id,
						materialType: this.type,
						materialName: e.materialName,
						count: 1
					}
					
				} else if (this.formIndex == 2) {
					this.formData2.receiveProductList[this.index] = e
				} else if (this.formIndex == 3) {
					this.formData3.underLeaseProductList[this.index] = {
						materialId: e.materialId,
						materialType: this.type,
						materialName: e.materialName,
						count: 1
					}
				} else if (this.formIndex == 4) {

					this.formData4.backProductList[this.index] = {
						materialId: e.materialId,
						materialType: this.type,
						materialName: e.materialName,
						count: 1
					}
				} else if (this.formIndex == 5) {

					this.formData5.damageProductList[this.index] = {
						materialId: e.materialId,
						materialType: this.type,
						materialName: e.materialName,
						count: 1
					}
				}
			},
			open(e) {
				this['collapse' + e] = !this['collapse' + e]
			},
			async getMaterialList() {
				if (this.title == '入库') {
					const res = await API.listAllReceiveProduct({
						params: {
							materialType: this.type
						}
					});
					this.materialList = res.rows;
				}
			},
			async listAllAppUser() {
				this.show = false;
				const res = await API.listAllAppUser();
				this.appUserList = res.rows.map(item => {
					return {
						value: item.id,
						text: item.nickname
					}
				})
				this.show = true;
			},
			async getStockCountList() {
				const res = await API.listAllStockCount({
					params: {
						materialType: this.type
					}
				});
				this.stockCountList = res.rows;
			},
			async initPage() {
				this.typeStr = this.type == '0' ? '产品' : '工具';
				if(this.firstIint)
				{
					await this.listAllAppUser();
					this.firstIint=false;
				}
				await this.getStorageList();
				await this.getStockRecordList();
				await this.getStockCountList();
				await this.getStockCountSum();

			}
		}

	}
</script>

<style lang="less" scoped>
	.container {
		background-color: #F7F7FA;
		height: 81vh;
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;


		.waite-number {
			width: 90%;
			margin-top: 10px;
			height: 80px;
			background: url('../../static/icons/top-bg.png');
			background-size: cover;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 8px;

			.num-wrap {
				width: 95%;
				height: 80%;
				display: flex;
				align-items: center;
				justify-content: center;
				background-color: #F2F7FA;
				border-radius: 6px;

				.num-item {
					width: 25%;

					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;

					.num:nth-of-type(1) {
						font-size: 14px;
						color: #757575;
						margin-bottom: 10%;
					}

					.num:nth-of-type(2) {
						font-size: 16px;
						color: #304EEB;
					}
				}
			}

		}

		.button-group {
			width: 90%;
			height: 40px;
			display: flex;
			margin-top: 10px;

			.btn-box {
				height: 100%;
				width: 18%;
				display: flex;
				justify-content: center;
				align-items: center;
				margin-right: 10px;
				background-color: #ffffff;
				border-radius: 8px;
				line-height: 40px;
				gap: 4px;

				.btn {
					font-size: 14px;
					font-weight: bold;
				}
			}

			.activeBtn {
				background-color: #304EEB !important;
				color: #fff;
			}

			.btn-box:nth-child(5) {
				margin-right: 0px !important;
			}
		}
		.scroll {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: flex-start;
			box-sizing: border-box;
			height: 65vh;
			width: 100vw;
			padding-bottom: 30rpx;

			.card-box
			{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: flex-start;
				gap: 20rpx;
				width: 100%;
				padding: 20rpx 0;
				.card
				{
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					width: 90%;
					box-sizing: border-box;
					background: #FFFFFF;
					padding:20rpx 20rpx 10rpx 20rpx;
					border-radius: 10rpx;
					border: 1rpx solid RGBA(255, 255, 255, 1);
					box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
					gap: 40rpx;
					.top
					{
						width: 100%;
						display: flex;
						flex-direction: row;
						justify-content: space-between;
						align-items: center;
						font-size: 30rpx;
						color: RGBA(0, 0, 0, 1);
						.name
						{
							color: RGBA(0, 0, 0, 1);
							text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
							font-weight: 500;
						}
						.count {
							font-size: 24rpx;
							color: RGBA(0, 0, 0, 0.5);
							display: flex;
							flex-direction: row;
							align-items: center;
							justify-content: center;
							gap: 20rpx;
							width: 120rpx;
							border-top: 1px solid rgba(255, 255, 255, 1);							border-left: 1px solid rgba(255, 255, 255, 1);							box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
							height: 60rpx;
							background: #F2F2F2;
							border-radius: 10rpx;
							.num {
								font-size: 28rpx;
								font-weight: bold;
								color: rgb(112, 182, 3);
								
							}
						}
					}
					.bottom
					{
						width: 100%;
						display: flex;
						flex-direction: row;
						align-items: center;
						justify-content: flex-start;
					}
				}
			}
			.product-box {
				display: flex;
				flex-direction: column;
				align-items: flex-start;
				justify-content: flex-start;
				
				gap: 20rpx;
				width: 90vw;
				box-sizing: border-box;
				padding: 20rpx 0rpx;
				font-size: 30rpx;
				border-radius: 5rpx;
				color: rgba(0, 0, 0, 0.6);

				.addBtn {
					display: flex;
					flex-direction: row;
					align-items: center;
					justify-content: flex-start;
					gap: 10rpx;
				}
				.form-item
				{
					width: 100%;
					margin: 10rpx 0;
					box-sizing: border-box;
					padding-right: 10%;
					background: #FFFFFF;
					padding: 30rpx 60rpx 30rpx 30rpx;
					border-radius: 10rpx;
				}
				.item-box {
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					border: 1rpx solid RGBA(255, 255, 255, 1);
					box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
					background: #FFFFFF;
					width: 100%;

					box-sizing: border-box;
					padding: 30rpx 60rpx 50rpx 30rpx;
					border-radius: 10rpx;
					gap: 20rpx;
					
					
					.item-title {
						width: 100%;
						font-size: 30rpx;
						font-weight: 500;
						color: rgba(0, 0, 0, 0.8);
						box-sizing: border-box;
						display: flex;
						flex-direction: row;
						justify-content: flex-start;
						align-items: center;
						gap: 20rpx;

						.btn {
							margin: 0;
							font-size: 24rpx;
						}

					}

					.item-row {
						display: flex;
						flex-direction: row;
						align-items: center;
						justify-content: flex-start;
						width: 100%;
						height: 70rpx;
						box-sizing: border-box;
						padding-left: 40rpx;

						.label {
							width: 30%;
							height: 120rpx;
							font-size: 27rpx;
							font-weight: 400;
							color: rgba(0, 0, 0, 0.6);
							box-sizing: border-box;
							display: flex;
							align-items: center;
							justify-content: flex-start;

						}

						.input {

							background: #F7F7FA;
							border-radius: 10rpx;
							flex: 1;
							border: 1rpx solid RGBA(0, 0, 0, 0.1);
							display: flex;
							height: 100%;
							flex-direction: row;
							align-items: center;
							justify-content: flex-end;
							font-size: 26rpx;
							font-weight: 400;
							color: rgba(0, 0, 0, 0.4);
							box-sizing: border-box;
							padding-right: 30rpx;

						}
						.textarea
						{
							flex: 1;
							height: 100%;
							
						}
					}

					.last-row {
						margin-top: 10rpx;
					}

					.image-row {
						height: 145rpx;
						margin-top: 15rpx;
						display: flex;
						flex-direction: row;
						align-items: flex-start;
						justify-content: flex-start;
					}
					.remark-row
					{
						height: 180rpx;
						margin-top: 15rpx;
						display: flex;
						flex-direction: row;
						align-items: flex-start;
						justify-content: flex-start;
					}


				}

				.btn-group {

					display: flex;
					flex-direction: row;
					align-items: center;
					justify-content: flex-end;
					gap: 20rpx;
					width: 100%;
					margin-top: 60rpx;
					box-sizing: border-box;
					padding-right: 20rpx;

					.btn {
						font-size: 28rpx;
						margin: 0;

					}

				}

				.collapse {
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: flex-start;
					width: 100%;
					box-sizing: border-box;
					gap: 40rpx;
					border-radius: 20rpx;
					padding: 10rpx 0;
					.collapse-box {
					
						display: flex;
						flex-direction: column;
						align-items: center;
						width: 90%;
						border: 1px solid rgba(255, 255, 255, 0.5);
						box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
						background: RGBA(255,255,255,0.6);
						box-sizing: border-box;
						padding: 10rpx;
						border-radius: 10rpx;
						gap: 20rpx;
						.name {
							width: 100%;
							display: flex;
							flex-direction: row;
							box-sizing: border-box;
							align-items: center;
							justify-content: flex-start;
							padding: 20rpx 0 0 20rpx ;
							font-weight: 600;
							font-size: 30rpx;
							color: RGBA(0, 0, 0, 0.6);
						}

						.cnt {
							display: flex;
							flex-direction: row;
							align-items: center;
							justify-content: flex-start;
							width: 100%;
							box-sizing: border-box;
							padding: 10rpx 30rpx;
							gap: 120rpx;

							.count {
								font-size: 30rpx;
								color: RGBA(0, 0, 0, 0.5);
								.num {
									font-size: 38rpx;
									font-weight: bold;
									color: rgb(112, 182, 3);
									margin-left: 10rpx;
								}
							}
						}
					}

				}
			}
		}
	}
</style>